#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	int n, a, b, c;
	scanf("%d", &n);
	double digit;
	for (int i = 0; i < n; i++){
		scanf("%d%d%d", &a, &b, &c);
		digit = 1.0 * a / b;
		printf("%.*f\n", c, digit);
	}
	return 0;
}